package org.dromara.xyyw.domain.bo;

import org.dromara.xyyw.domain.XyywGoods;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 商品业务对象 xyyw_goods
 *
 * @author yf
 * @date 2024-05-29
 */
@Data
@AutoMapper(target = XyywGoods.class, reverseConvertGenerate = false)
public class XyywGoodsBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空", groups = {EditGroup.class})
    private Integer goodId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer userId;

    /**
     * 商品名称
     */
    @NotBlank(message = "商品名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String goodName;

    /**
     * 分类ID
     */
    @NotNull(message = "分类ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer categoryId;

    /**
     * 销售价
     */
    private BigDecimal salePrice;

    /**
     * 图片
     */
    private String productImage;

    /**
     * 详细描述
     */
    private String detailedDescription;

    /**
     * 上架状态
     */
    private String shelfStatus;

    /**
     * 上架时间
     */
    private Date shelfTime;

    /**
     * 下架时间
     */
    private Date unshelfTime;

    /**
     * 是否推荐
     */
    private String isRecommended;

    /**
     * 销量
     */
    private Integer salesVolume;

    /**
     * 评论数量
     */
    private Integer commentCount;

    /**
     * 评分
     */
    private BigDecimal rating;

    /**
     * 商品标签
     */
    private String productTags;

    /**
     * 主要成分
     */
    private String mainIngredients;

}
